﻿#include "form.h"
#include "ui_form.h"
#include "widget.h"
Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
    ui->horizontalSlider->setMinimum(0);
    ui->horizontalSlider->setMaximum(360);
}


Form::~Form()
{
    delete ui;
}

void Form::on_horizontalSlider_valueChanged(int value)
{
    ui->openGLWidget->coloursource = value/4*3.14/180;
    ui->openGLWidget->update();
}

void Form::on_pushButton_clicked()
{

}

